#pragma once
class Thread
{
public:
    Thread();
    virtual ~Thread();

    bool run();

    virtual bool runLoop() = 0;

    static DWORD WINAPI ThreadFunc(LPVOID lpPara);

    HANDLE thread() { return thread_; }

protected:
    HANDLE thread_;

    DWORD thread_id_;
};

